package cn.itcast.bos.action.base;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionContext;

import cn.itcast.bos.domain.base.TakeTime;
import cn.itcast.bos.service.takeTime.TakeTimeService;
import cn.itcast.fore.web.action.common.BaseAction;

@Controller
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class TakeTimeAction extends BaseAction<TakeTime> {
	@Autowired
	private TakeTimeService takeTimeService;

	@Action("taleTime_listNoDeltag")
	public String listNoDeltag() {
		// 查询所有没有标记没有删除的快递员
		List<TakeTime> takeTimeList = takeTimeService.findTakeTimeNoDel();
		// 把获得的数据押入栈顶
		ActionContext.getContext().getValueStack().push(takeTimeList);
		// 返回结果集(json格式)
		return JSON;

	}

}
